package me.atbar.moonlib.socreboard;

import lombok.Getter;
import java.util.HashMap;

/**
 * @author Administrator
 */
public class BoardContent {

    @Getter
    private final HashMap<Integer, String> contentMap = new HashMap<>();

    public void addContent(Integer line, String text) {
        contentMap.put(line, text);
    }

    public String getContent(Integer line) {
        if(contentMap.get(line) != null) {
            return contentMap.get(line);
        }
        return null;
    }

}
